package com.itheima.fanshe;


import com.itheima.domain.Student;

import java.lang.annotation.Annotation;
import java.sql.Array;
import java.util.Arrays;

/*
获取类的 父类  接口  注解
 */
public class Demo12 {

    public static void main(String[] args) {

        Class<Student> clazz = Student.class;
        Class<? super Student> dieClazz = clazz.getSuperclass();
        System.out.println(dieClazz);
        Class<?>[] interfaces = clazz.getInterfaces();
        System.out.println(Arrays.toString(interfaces));

        Annotation[] annotations = clazz.getAnnotations();
        System.out.println(Arrays.toString(annotations));

    }
}
